package com.hand.zc25650.ioc;


import java.io.Serializable;


public class Person implements Serializable {

    private ISay iSay;

    public ISay getiSay() {
        return iSay;
    }

    public void setiSay(ISay iSay) {
        this.iSay = iSay;
    }

    public Person() {
    }

    public Person(ISay iSay) {
        this.iSay = iSay;
    }

    public void sayHello() {
        System.out.println(iSay.say());
    }
}
